import upload from '@/utils/upload'
import request from '@/utils/request'

export function getFacilityManagePage(query) {
	return request({
		url: "/xcjk/facility-manage/page",
		method: "get",
		params: query,
	});
}

export function patrolPointPage(query) {
	return request({
		url: "/xcjk/patrol-point/page",
		method: "get",
		params: query,
	});
}

export function getKgPlaceTypePage(query) {
	return request({
		url: '/xcjk/kg-place-type/page',
		method: "get",
		params: query,
	});
}

export function getFacilityComponentPage(query) {
	return request({
		url: '/xcjk/facility-component/page',
		method: "get",
		params: query,
	});
}
export function batchCreate(data) {
	return request({
		url: '/xcjk/patrol-record-info/batchCreate',
		method: 'POST',
		data
	});
}
